package com.house.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author: GGP
 * @description: 留言实体类
 * @time: 2023-04-17 19:30
 **/
@Getter
@Setter
@Entity
@Table(name = "message")
@ApiModel
public class Message extends CommonProperties{

	/** 留言信息 */
	@ApiModelProperty(value = "留言信息",name = "message",required = true)
	@Column(name = "message")
	private String message;

	/** 用户id */
	@ApiModelProperty(value = "用户id",name = "userId",required = true)
	@Column(name = "user_Id")
	private Integer userId;

	/** 房源id */
	@ApiModelProperty(value = "房源id",name = "houseId",required = true)
	@Column(name = "house_id")
	private Integer houseId;
}
